updated dependencies
added legends