updates to animation to prvent some visual artifact