working version of convertToProBiS