Added Declaration of reversePath()