modified scheduler