regularization of cost function implemented and submitted