added animate func body