corrected recisterclass error