fixed bugs and added a default animation