[core] correct private modifiers