fix wrong camel style.
refactor multiple if.