Removing unnecessary pointer