completed show map function