worked on some issues regarding copula function