change animations function