started on dynamic legend