nearly finished scheduler