update brackets, solved bug