Bug removal, splicing first attempt unsuccessful, file output needed