better handling of linear term in cifar