reduced code nesting level