Update commonclass.php