fix method scope modifiers