fix append & prepend input