make the path be taken from 'n' instead of 'p' so that it's the same as