format curly brace correctly