code to evolve complements