adjust read table logic