table scanning work in progress