fixed missing curly brackets