adding indexes to the dependence table