added minimum
added min max