dynamic scheduling working