working on doc system