add minimum functions