cleanup unnecessary lines