add final model and output