seperate array to hold indexes