have a row and coulmn output, now we need some logic