fixed class instantiation