destroy quote function working