fixed parse errors for PHP 5.3