Update Relate.php