extracting information to outside of the resource object