fixing instance variables