working on create map function