schedulding algorithm integrated