using the grains