revise filetype, write more code