remove unneeded de-dupe code