classes.php modified