fixing math errors
fixing this is getting annoying