edit grammar/array