renamed filePath to path