finished the plugin data function