impl append(...) and extend(...)