converting public to int