change training algorithm.