attempt to prevent flicker