all sum func in eq 2 should be product and the Cij is not the same as Eq 1 please correct me if there is something wrong. thanks