added max to identityCopy