updated the plugin to use difference array instead of mesh array