start of scheduler