distance ^2 fixed