changed wormhole failed function