made the math changes