targetFile method