corrected bug with appendCopy