implement the getUid method