Changes to remove() and reverse() methods