avoid flicker