join var declarations in main file