well with that approach you must know beforehand how many columns you have... for example it would work if you only have one or three columns?