class not accepted for some reason