update hash instead of all attribues