fetching data with id