rm previous reference codes