add callback for addData