using path to calculate iv