finished shared.php