fix boost function