deleted genetic algorithm and added some code