partial fix for #39: removed new() for softmax APIs