chaning to dynamic scheduling