creating map to get id