change bracket functionality