dont call the callback twice