move animation object to separate file