finish dict insertion