prevent animation if not required