create dependency of each models