adding data retrieval script