math.mod was renamed to math.fmod; also made significant performance micro-optimization!!1!