method to get data