added getMaximumElement