fixed grams declaration
need to rework picker to keep kv pairs together