Delete unnesescary lines