add callback to getAllData method