revising set legend