formated document as more less like it should be