programIndex still not working, found where change is needed...