finished bracket pairs except angle needs bug fix