changed example to reflect plugin code