cleanup reference to deleted code