added else if

added else if