changed index to reference cv