tweaks array_insert