splicing the mainbrace