small fix to prepend and append