Changing c to column and r to row