merging encog