why this multiplication with 0.999? Please document in the code