corrected DXL logic