manage unique keys