adding statements to remove duplicate entries in qt%