init PutRet and check null before print it