added animate method