added code - to the LoadData function