changed Class to RegClass to avoid future errors (if any)