add priorities to scheduling