changed index to make better use of space