add render and test for animate