changed to index from $_master