final version. IGNORE index_old.php