fixing bracket error