reform to fit coding rule(auto funtion style).