update deferred code