Changing set method into map data