changed splice to split in model deletion code