update callback function to void