table check first