little code restructure that allow several models to play animations