updated append / prepend