trying to improve table detection