fix some code styling problems