updating and fixing cv