unused variable warning
corrections in error handling of getAnimationElements