updated CRON to include switch query (code elimination)