document print as dict