remove legacy lines