playing around
refactor code into functions and scoping vars