Max and min task altered

slightly changed couple of names for max and min.