general method for copulas