Change instance variable to local variable