some changes on linearAnimation