Please quote your code when you ask a question: PSA: how to quote code with backticks
It is a very bad idea to (i) use global variables, and (ii) especially a bad idea to share them between different files!
Instead, pass the variables as arguments to your functions. If you have many parameters, wrap them up into a type, e.g. using Parameters.jl.