missing var and encapsulation of setup