moved setup away from constructor