revert prepend and append to immutability