add doc2 new functions