*minor fixes

minimize function fix