finding the max value of an attribute