backtracking not working on some schedules or taking a really long time...