better model clearing