udpated scheduler