added else if

added else if statement