more work on cleaning up the optmizer line of code for RBMs