cleaned up some code, fixed a crash thats caused by not also deleting the routine in other days