add new methods for check bracket,brances