commit documents
finished register function