added RegClass to change from Class to stop any future possible errors