added processing sketch for grind mode