rm min() from api