remove path pasting and replaced with file.path