add schedule update function