revise cron method