put code into file