added MathHelper with new functions