corrected curly braces