map implementation works.