eliminate last unnecessary external references