prevent the flicker that happens with updating done