removing un-needed lines