Update functions.php

functions for schedule