add adCallback and modify formatData for test