new method of getting the data