changed cv to int