fix add whitespace around { and add ; inside }