legend duplication is removed