refactored sendToMinID.