remove garbage lines