changed the index and style