using absorption or generation of gas