updates callback functions