code for cron in setup