when to use was and were in a sentence