writing core of the evolution strategy