flip the loops for col and row so that we are applying columns for every row instead of rows for every column... it got really really funky