updated animation properly