add dependecies to factory