match grain properly