trying to make the callback work