fixed missing curly braces