simplfy ridge function, finish OCV function