update and compile cv