implement C calculation based on variance
remove console debug prints