added looping parameter to animation and model reuse