moved setup variables to separate method