enumerate instead of counting lines