replaced index and added plots