cleaned up join-duplicates