put vars in separate function, but need reference

Printable View