change some interface for sparse l2 regularization