class.php  modified