removes somes useless lines