update code to load data