fetch function with population