making a factory method static