added ability to get data