fetching data for viewModel fixed