mechanism used in grinding machines