fixed a bad bracket ending