fixed math :/