remove functions for max and min