removed instance variables in favor on dependancy injection