need to use boost beta function