refactoring some function in convertToProbis