working on zg.php