unique constraint check
ride algorithm structures
unique test