new method to load data.