docsystem funtion __ fixed