replaced all occurences of protected with public