changes data to data.results