changed list indexing