moved setup code into constructor function