fixed curly brackets placement