handle nil assignment