for fixing nil