mincols calculation was bugged