move curly brace to proper location