resolved flicker problem with timings