debug for null