added assert NULLs changed decRef