passed the code from the script to the other files