cleaning up links