update function

new parameters for update scheduled task