refactoring: remove duples