load method for data