fixed some bad coding style