resume with value works