problem 3 and index debuger