main.cpp testing for index