updated grains
update difference of squares