updated for v8