UID reset function