May you simplify this block and use `do..end` isntead of `{ .. }` for multiline. So for me this code not clear.