remove throw if callback is undefined