improve animation performance