fixed indentation and brace style for consistency and k&r