Tried to fix compiler error with adding braces