corrected schedule update script