fixed regularization
removed hardcoded paths