change legend