restrict method modifiers