refactoring manipulation methods to be more readable and follow a common flow.