adjust quotation function