invert grant type