now with path calculations