switch to use table