added min max with respond