remove extraneous links