update of animations code