Maximum work is done in compressing air when the compression is