merge blocks