getting a copy but appending to wrong place