working on table_scan