update schedule and code