Edited indices array building