removed attribute from factory method