[vega]clean code