consider errors for xlim