gram mechanism | ScratchStats