repeat working for all consecutive blocks, not for nested