check unique code