How to Paraphrase Without Plagiarizing: A 4-Step Method
Read until you can explain it, close the source, rewrite from memory, then cite. That is the whole method. The reason people still get flagged is that they skip the closing step and swap synonyms into someone else's sentence instead.