moved factory below