updated bivariate script
updated bivariate script