bcindex logics

Editing bcindex logics
Table regular expression
Change return logics