added trim to target file