refactor
handle cas in updates
reverting
reverting