function to prepend/apend paragraphs

thnx @iamlukem