prepend and append inputs fixed.