refactoring in progress (update the identity is not working)