updates and rems legend.