get rid of flicker