updated legend