adding case when xreg is null