remove goto to provide support for PHP 5.2