complexer dedupe example and fixed bugs