probably unfeasible work on typing the output on model