add missing curly brackets