minor animation code edits