added function to qmclibv1