added schedule functionality