change deferred to use when/then