updated version, part of appendInPlace and just append finished