move append to different function

I missed the C++reference