changes the facade to a factory