add case for varying column counts per row