table check-in logic