cleans up links