made nested class protected