trying to implement uid. part3. cleanup