added autofill for mint, material and grams