added min max methods