note to minFunc location