bracket error starting in line 79