make a detector for length of table.