more compact code block