refactored getHull