added curlies, set to coding standards