unpacking nil error handled