added else if statement

added else if statement