made constructors of factories private