functions and of ball mill