changed uid to int and public