removes duplication