add access modifiers to the method vars