change over to dims instead of num-cols,num-rows
merge