implemented several helper methods for the new mutate() method.