added brackets handler