Fix to callback functions

fix to callback function call, removed deprecated call