added min max stuff