changing grain structure to support the grains.present format