where p is the path being expanded