adding pandoc function