added functional mincols-detection