1. add cv function.