fixed curly braces error