load data method updated