coding style modified