tweaks to genetic algorithm