deleted the last end accidentally
WIP: immutabilizing deep merge