clean up Factory