refactored using namespace out of wormholeCalc