add method to get data