correct javadoc
support nested elements