remove unnecessary legacy lines