make gd and bfgs work after moving loss to simple_label