geom, min with better interface
bug fix functors