bug fixing in index

Team 1 code