ios update refactor