the same gas is taken quasi statically