added great circle mapping code