fixed bug in split. added insert