changed "if" to "of" (line 48)