When a gas is heated, change takes place in