modify schedule method