added better accuracy to max button