modified file encode