avoid print None object