specifying last-of-type for repeat