animations code updated