avoid extra do blocks in inlined code if possible