arrange the shifts