changed proto to int