lift the paraboloid and refactor paraboloid code