use Kernel.put_in instead of Map.merge