puting the grammar in the right positon