trying to fix the plugin, not the algo