not only . . . but also
Matching forms after each half of the pair.
After not only and but also, use the same kind of word or phrase. A verb with a verb: She not only filed the brief but also signed it. A noun with a noun. A gerund with a gerund. Do not pair a gerund with an infinitive.
Examples
Use He not only runs but also swims.
Use She likes not only cooking but also swimming.
Avoid She likes not only cooking but also to swim.