implemented support for segmented animations