added min & map