fixed instantiation of abstract class