remove the rows x cols logic