Delete unnescessary lines