discovered threading issue / fixed math