changed merge code to use pointers to block, not block object