cleanup the links