add l2-regularized training