added index parameter in visualizer.py RME's