rewrite scheduled task