figuring out most efficient path for checking the free tables