Remove unnesesery lines