this file has my function and the function that returns path array called getpath