getUniqueId function added