change the bug in OCV function