changed scheduling query