modified the plugin