implemented isDeleted and isRetrieved methods.