remove duplicates from answer