diff --git a/examples/ea/ea.py b/examples/ea/ea.py
index <HASH>..<HASH> 100644
--- a/examples/ea/ea.py
+++ b/examples/ea/ea.py
@@ -41,12 +41,14 @@ class EA:
         return generation
 
     def crossover(self, parents) -> Chromosome:
-        child = Chromosome(np.zeros(parents[0].values.shape))
-
-        for i, v in enumerate(parents[1].values):
-            child.values[i] = v if np.random.rand() > 0.5 \
-                else parents[0].values[i]
-
+        # child = Chromosome(np.zeros(parents[0].values.shape))
+        #
+        # for i, v in enumerate(parents[1].values):
+        #     child.values[i] = v if np.random.rand() > 0.5 \
+        #         else parents[0].values[i]
+
+        child = Chromosome(np.where(np.random.random(parents[0].values.shape) > 0.5,
+                                    parents[0].values, parents[1].values))
         return child
 
     def mutate(self, child) -> Chromosome:
made crossover into a one-liner