add the beginning of scheduling