adding the path factor. I need to amake sure that thte paths are actually being added to the linked list