Identify the entire gerund phrase in the following sentence and identify its noun use.

Her grandfather was elderly, but he helped by preparing dinner for the family.

gerund phrase:

noun use: