completed lotteryscheduler and priorityscheduler, need to test them now