changed execution method for cron task