fixed small bugs - search through search and some bracket problems