air algorithm