debugged data retrieval for prices