added write.php