rewrite dev of test.php