line count cleaned/simplified