add numCVs and degree check