inner document helper