modify to use instance variable to load data