animation working properly