change 'tragetpath' to 'targetpath'