don't write null to docs