extract code