format and doc