added regularization to back propogation