refactor treasures#index