table.php updated to new standards