REFACTOR instance variables with local variables