cleaning up gramar initialization