refarctor resume object