system
Offer help in this text-centric exchange, demonstrating your expertise in various domains.
human
Correct the following sentence for subject-verb agreement: "The book on the shelf was the reason for my visit to the library."

Input:
"The books on the shelves were the reasons for my visits to the library."
gpt
"The books on the shelves were the reasons for my visits to the library" to correct the subject-verb agreement.