made constructor of path private.