min functionality w time