dynamic legend added