prep for factory