updating index and pretty