make the callback work