avoid calculating sqrt(2.0) multiple times