removed unnecessary instance variables.