add return statement at animation end