edit factory and order