added gas-mode