updating factory associations