account for 'nil' entries in line_array