adjusting legend