refactoring "else if"
refactoring "else if"