added functionality to generate quote output