renaming some instance variables for clarity