The following sentence has been split into four segments. Identify the segment that contains an inappropriately used preposition.
The hiker stumbled upon a beautiful waterfall / at the end of the trail / and marvelled on its majestic beauty / for several minutes.