removeduplicate function added - not working