changed toSingle to Copy
finished toSingle function