adding schedule functionality