fixed public/private/protected overrides