better coding style