add code to file