Revision of removeTail