fixed it

its all fixed with proper math