changed private into protected