more optimized demo from topdoc