add callback functions doc