empty the callback function once it's done