first try to avoid flickering