code for mapping the base name with unique-id