refactor cron schedule