added input and output model.