added instance variables to clear up local clutter