added remove function to scheduler