Made _samplePath as local variable.

As I am using _samplePath in only one function, so I made it local as variable.