changed example implementation