finally got my addBoost function to work the way I wanted