fixed some coding style issues that bugged me