fetch_map function added