updating the plugin code