fixing dumb math