fixing bracket issues