adding dict and grammar