fixed insert in case 4