added functions for schedule