added MathUtils.max method