finish multi-quote function