small cv helper refactoring