added min functionality