refactor register response object