format existing file