add constructor for uid