animation now works properly.