added callback function to run cron completion