complete part of document and some bug