adjust scheduling algorithm