selectPath is a method of