corrected curly brace position