changed variable factory