fix translator and add grammar