compute this value correctly