changed the index to photos