removed dependency on interval function in cron