hacked it to solve inifinite loop. hack: last row must be a new row starting with a semicolon