remove unnecessary modifiers