created 2 versions of plugin