fixed a couple of errors in the intial class creation