when to use was or were in a sentence