removed header using each_with_index instead of ignoring header text