added min max scanner