connects the models