added legend to index