add new swift braces func