solved flicking problem