When to reference to AVOID plagiarism in a thesis or research paper