improve transition effect