fixed grain params read func