make state variables instance variables