changed getPath to getName