added a sub class check for the protected access level