fixes declaring class