fixed a protected access bug by changing it to a getter function