working on the dicing mechanism