overall function of a mill