correcting brackets