updating for cron job