added a getIdentity method