fix error in defn of gram