added min max scaling