refine animation structure