to add a function to the BGL