before factory