remove double function
beautify code after google closure-linter check