use better coding style