separated row and column input