Exclusion criteria: acute pulmonary edema, coexisting interstitial pathologies, neuromuscular pathologies, thoracic cage's deformity, previous diaphragmatic paralysis, hemodynamic instability, intracranial hypertension, pregnancy, absolute contraindications to NIV, need for immediate intubation, recent thoracotomy, presence of pneumothorax or pneumomediastinum.