strange things going on with classes