move var back to main fn
clean up