trying to fix math