fixed constructor. now uses instantiation method