adds o(n) animation