small correction in animation
dont just copy and paste the done function was undefined here